<template>
  <div class="dependence">
    <div class="title">第三方依赖</div>
    <div class="item">
      <div class="input">
        <label>禅道：</label>
        <input
          v-model="cd"
          placeholder="请输入禅道地址"
        />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  name: "Dependence",
  watch: {
    cd(n, o) {
      localStorage.setItem("cdUrl", n);
    },
  },
  data() {
    return {
      cd: "",
    };
  },
  methods: {},
  mounted() {
    var cd = localStorage.getItem("cdUrl");
    if (cd && cd != null) {
      this.cd = localStorage.getItem("cdUrl");
    }
  },
};
</script>

<style lang="less">
.dependence {
  .title {
    text-align: center;
    width: 100%;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
  }

  .item {
    display: flex;
    margin-bottom: 10px;
    line-height: 30px;

    label {
      text-align: right;
      width: 10rem;
    }

    .input {
      display: flex;
      outline: none;
      font-size: 1rem;
      color: #7f8c8d;
      border: none;
      flex: 1;
      width: 0;

      label {
        text-align: right;
        width: 8rem;
        overflow: hidden;
        white-space: nowrap;
      }

      input {
        width: 100%;
        border: 1px #eeee solid;
        padding: 0 6px;
        outline: none;
      }
      input:hover {
        outline: none;
        border: 1px rgba(118, 178, 255, 0.933) solid;
      }
      input:focus {
        outline: none;
        border: 1px rgba(118, 178, 255, 0.933) solid;
      }
    }
  }
}
</style>
